<template>
  <ConfigProvider
    :locale="langMap[pageStore.$state.lang]"
    :theme="{
      algorithm: theme.defaultAlgorithm,
    }"
  >
    <RouterView />
  </ConfigProvider>
</template>

<script setup lang="ts">
import { ConfigProvider, theme } from 'ant-design-vue';

import './api/config/interceptor';
import { langMap } from './i18';
import usePageStore from './store/page';

const pageStore = usePageStore();
</script>

<style lang="scss" scoped></style>
